<!--<include file="public+header" />-->

<!--{:Core_Extend::editorInclude()}-->
<!--{:Core_Extend::emotion()}-->

<!--{script}-->
$(function(){
	editor=loadEditorThin('jiajucompany_content');
	$(".face-icon").jqfaceedit({txtAreaObj:editor,containerObj:$('#emotion_parentcontainer'),top:25,left:-27});
});

function updateContent(){
	$("#submit_button").attr("disabled", "disabled");
	$("#submit_button").val( 'add...' );
	$('#jiajucompany_content').val(editor.html());
	Q.AjaxSubmit('contentAdd','<!--{:Q::U('jiajucompanycontent/content')}-->','',complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val( '更新' );
	if(status==1){
	}
}
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">商家简介</a></article>
		</div>
	</section>

	<section id="main" class="column">

		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>温馨提示：请尽量丰富商家简介里面的内容！</li>
				</ul>
			</div>
		</article>
		
		<article class="module width_full">
			<header><h3 class="tabs_involved">修改商家简介</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('jiajucompanycontent/index')}-->">返回商家简介</a></li>
				</ul>
			</header>
			<form action="" method="post" id="contentAdd">
				<div class="module_content">
					<fieldset>
						<label for="jiajucompany_content"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->商家介绍<!--</lang>--></label>
						<div id="homefreshmessage-media-box" class="common-media-box">
							<a href="javascript:void(0);" class="face-icon icon_add_face" ><!--<lang package='Template'>-->表情<!--</lang>--></a> 
							<a href="javascript:void(0);" onclick="globalAddattachment('insertAttachment_');" class="icon_add_img"><!--<lang package='Template'>-->媒体<!--</lang>--></a>
							<a href="javascript:void(0);" onclick="addVideo('insertVideo_');" class="icon_add_video" ><!--<lang package='Template'>-->视频<!--</lang>--></a>
							<a href="javascript:void(0);" onclick="addMusic('insertMusic_');" class="icon_add_music"><!--<lang package='Template'>-->音乐<!--</lang>--></a>
						</div>
						<p id="emotion_parentcontainer">
							<textarea name="jiajucompany_content" id="jiajucompany_content" style="width:700px;height:<!--{:Core_Extend::getEditor()}-->px;visibility:hidden;"><!--{$oJiajucompanycontent['jiajucompany_content']|htmlspecialchars}--></textarea>
						</p>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="submit" id="submit_button" value="更新" onclick="updateContent();" class="alt_btn">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->